export default ({
  $axios
}, inject) => {

  // banner
  inject('selectLabelList', () => $axios({
    url: '/api/phone/website/selectLabelList',
    method: 'GET',
    params: {},
    headers: {
      'Content-Type': 'application/json',
    }
  }))
  
  inject('selectIndexData', () => $axios({
    url: '/api/phone/website/selectIndexData',
    method: 'GET',
    params: {},
    headers: {
      'Content-Type': 'application/json',
    }
  }))
  
  
  
  //二级菜单


  
  inject('selectLabelAndArticle', ({
   cateId
  }) => $axios({
    url: '/api/phone/website/selectLabelAndArticle',
    method: 'POST',
    params: {
     cateId
    },
    headers: {
      'Content-Type': 'application/json',
    }
  }))
  
  // 新闻分类
  
  inject('selectWxNoticeCategoryList', ({
   type
  }) => $axios({
    url: '/api/phone/website/selectWxNoticeCategoryList',
    method: 'GET',
    params: {
     type
    },
    headers: {
      'Content-Type': 'application/json',
    }
  }))
  
  
  //团队查询
  inject('getWebsiteTeamById', ({
    id
  }) => $axios({
    url: '/api/phone/website/getWebsiteTeamById',
    method: 'GET',
    params: {
      id
    },
    headers: {
      'Content-Type': 'application/json',
    }
  }))
  
  
  //底部菜单
  inject('selectLabelList', () => $axios({
    url: '/api/phone/website/selectLabelList',
    method: 'GET',
    headers: {
      'Content-Type': 'application/json',
    }
  }))
  
  
  
  
  
  
  //团队

  
  inject('selectWebsiteTeamList', () => $axios({
    url: '/api/phone/website/selectWebsiteTeamList',
    method: 'GET',
    params: {

    },
    headers: {
      'Content-Type': 'application/json',
    }
  }))
  
  
  
  
  
  

  inject('selectArticlePage', ({
    pageSize,
    pageNum,
    labelName
  }) => $axios({
    url: '/api/phone/website/selectArticlePage',
    method: 'POST',
    params: {
      pageSize,
      pageNum,
      labelName
    },
    headers: {
      'Content-Type': 'application/json',
    }
  }))

  inject('getArticleById', ({
    id
  }) => $axios({
    url: '/api/phone/website/getArticleById',
    method: 'GET',
    params: {
      id
    },
    headers: {
      'Content-Type': 'application/json',
    }
  }))
  inject('selectWxNoticePage', ({
    pageSize,
    pageNum,
    type,
	categoryId
  }) => $axios({
    url: '/api/phone/website/selectWxNoticePage',
    method: 'POST',
    params: {
      pageSize,
      pageNum,
      type,
	  categoryId
    },
    headers: {
      'Content-Type': 'application/json',
    }
  }))
  inject('getWxNoticeById', ({
    id
  }) => $axios({
    url: '/api/phone/website/getWxNoticeById',
    method: 'GET',
    params: {
      id
    },
    headers: {
      'Content-Type': 'application/json',
    }
  }))
  inject('indexData', () => $axios({
    url: '/api/phone/website/indexData',
    method: 'GET',
    headers: {
      'Content-Type': 'application/json',
    }
  }))
  inject('selectIndexArticleData', () => $axios({
    url: '/api/phone/website/selectIndexArticleData',
    method: 'GET',
    headers: {
      'Content-Type': 'application/json',
    }
  }))
  
  










}
